package com.cec.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 老人信息表
 * </p>
 *
 * @author lt
 * @since 2024-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Oldster对象", description="老人信息表")
public class Oldster implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "老人表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "老人名称")
    private String userName;

    @ApiModelProperty(value = "老人密码")
    private String password;

    @ApiModelProperty(value = "老人联系号码")
    private String phone;

    @ApiModelProperty(value = "老人性别")
    private Integer sex;

    @ApiModelProperty(value = "政治面貌")
    private Integer politicalStatus;

    @ApiModelProperty(value = "老人图片")
    private String img;

    @ApiModelProperty(value = "居住地址")
    private String address;

    @Version
    private Integer version;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "创建用户")
    private Integer createUser;

    @ApiModelProperty(value = "更新用户")
    private Integer updateUser;

    @ApiModelProperty(value = "删除标志")
    @TableLogic
    private Integer deleted;


}
